﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAO;
using DTO;
namespace BUS
{
    public class HoaDonBanHangBUS
    {
        public string KetNoi()
        {
            HoaDonBanHangDAO hdDAO = new HoaDonBanHangDAO();
            return hdDAO.KetNoi();
        }
        public List<HoaDonBanHangDTO> LayDanhSachHoaDonBanHang()
        {
            HoaDonBanHangDAO hdDAO = new HoaDonBanHangDAO();
            return hdDAO.LayDanhSachHoaDon();
        }
        public string ThemHoaDonBanHang(HoaDonBanHangDTO hdDTO)
        {
            HoaDonBanHangDAO hdDAO = new HoaDonBanHangDAO();
            return hdDAO.ThemHoaDonBanHang(hdDTO);
        }
        public int LayMaHoaDonBanHang()
        {
            HoaDonBanHangDAO hdDAO = new HoaDonBanHangDAO();
            return hdDAO.LayMaHoaDonBanHang();
        }
        public string XoaHoaDon(int maHD)
        {
            HoaDonBanHangDAO hdDAO = new HoaDonBanHangDAO();
            return hdDAO.XoaHoaDon(maHD);
        }
    }
}
